
package com.xyyl.patient.core.constant;

/**
 * @ClassName: AppEnum
 * @Description:常量存储
 * @author chens
 * @date 2017年8月17日
 *
 */
public class AppEnum {

	public enum common {
		patientdiagnostic__type_delete(1,"逻辑删除"),
		archives__type_delete(1,"软删除"),
		article_type_banner(13,"轮播文章"),
		article_type_list(12,"文章列表"),
		article_type_index(11,"每日导读"),
		article_type_readcount(1,"阅读量"),
		Order_changetype_out(1, "支出"),
		Order_changetype_in(2, "红包"), 
		Order_consumetype_word(1,"图文"),
		Order_consumetype_phone(2, "电话"),
		Order_consumetype_speedPhone(3, "极速电话"), 
		Order_payType_aliapy(0, "支付宝"), 
		Order_payType_wx(1, "微信"),
		Order_payType_account(2, "余额"), 
		Order_status_status(0,"未确认"),
		Order_status_confirm(1,"确认"),
		Order_status_cancel(2,"已取消"),
		Order_status_invalid(3,"无效"),
		Order_status_Refund(4,"退货"),
		Order_Refund_status(4,"订单退款状态"),
		Recharge_status_not(1,"充值未支付"), 
		Recharge_status_finish(2, "充值已支付"), 
		Pay_status_not(0,"未支付"), 
		Pay_status_confirm(1, "已支付"), 
		Pay_status_finish(3,"已完成"), 
		Prder_status_lock(4, "已锁定"),
		Pay_status_shipping_not(0,"未发货"), 
		Pay_status_shipping_yes(1,"已发货"), 
		Pay_status_shipping_receipt(2,"已收货"), 
		Pay_status_shipping_customer_service(4,"售后"),
		Prder_status_refund_finish(5,"已退款"), 
		Prder_status_refund_wating(6,"退款申请中"), 
		Pay_result_success(1,"SUCCESS"),
		Pay_result_fail(2, "FAIL"),
		Mall_user_address_def(1,"默认地址"),
		Mall_user_address_ndef(0,"非默认地址");

		private int value;

		private String name;

		private common(int value, String name) {
			this.value = value;
			this.name = name;
		}

		public int getValue() {
			return value;
		}

		public void setValue(int value) {
			this.value = value;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

	}

	public enum SexEnum {
		sex_man(1, "男"), sex_women(2, "女");

		private int value;

		private String name;

		private SexEnum(int value, String name) {
			this.value = value;
			this.name = name;
		}

		public int getValue() {
			return value;
		}

		public void setValue(int value) {
			this.value = value;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public static String getName(int value) {

			String name = null;

			for (SexEnum appEnum : SexEnum.values()) {
				if (appEnum.value == value) {
					return appEnum.getName();
				}
			}
			return name;
		}
	}

	public enum QstatusEnum {
		qs0(0, "无人领取"), qs1(1, "已被医生领取"), qs2(2, "已解读");

		private int value;

		private String name;

		private QstatusEnum(int value, String name) {
			this.value = value;
			this.name = name;
		}

		public int getValue() {
			return value;
		}

		public void setValue(int value) {
			this.value = value;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public static String getName(int value) {

			String name = null;

			for (QstatusEnum appEnum : QstatusEnum.values()) {
				if (appEnum.value == value) {
					return appEnum.getName();
				}
			}
			return name;
		}
	}

	public enum MyServiceEnum {
		myservice1(1, "等待医生回复"), myservice2(2, "医生已回复");

		private int value;

		private String name;

		private MyServiceEnum(int value, String name) {
			this.value = value;
			this.name = name;
		}

		public int getValue() {
			return value;
		}

		public void setValue(int value) {
			this.value = value;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public static String getName(int value) {

			String name = null;

			for (MyServiceEnum appEnum : MyServiceEnum.values()) {
				if (appEnum.value == value) {
					return appEnum.getName();
				}
			}
			return name;
		}
	}

	/** 系统配置KEY **/
	public enum sysConfig {
		/** 电话订单推送 android Activity **/
		OMS_PHONE_ORDER_PUSH_API_URL,
		/** anroid phone order Activity **/
		OMS_PHONE_ORDER_ANDROID_ACTIVITY,
		/** anroid question order Activity **/
		OMS_QUESTION_ORDER_ANDROID_ACTIVITY,
		/** anroid speedphone order Activity **/
		OMS_SPEEDPHONE_ORDER_ANDROID_ACTIVITY,
		/** 电话订单,提前通知的时间 **/
		ORDER_AUTO_NOTICE_TIME,

		/** OMS 推送接口 **/
		OMS_SYSTEM_PUSH_API_URL,
		/**支付通知接口UEL **/
		OMS_SYSTEM_PAY_NOTITY_API_URL,
		/** 极速订单默认价格 **/
		OMS_SYSTEM_SPEED_ORDER_PRICE,

		/**医生默认图像地址(阿里云) **/
		DOCTOR_AVATAR_ALIYUN_URL,
		
	    /**短信通知URL **/
		OMS_SYSTEM_SMS_API_URL
		
	}
	
	/**
	 *<p> @ClassName: smsTemplaeKeys</p>
	 *<p> @Description: 短信模板Keys</p>
	 * @version
	 */
	public enum smsTemplaeKeys {
		//图文咨询
		SMS_TEMPLATE_CONSULT_ORDER,
		//用药咨询
		SMS_TEMPLATE_SERVICE_ORDER
	}

}
